/*
 *  This file is part of Cube.
 *
 *  Cube is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Cube is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Cube.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
package cube.charts;

import javax.swing.JInternalFrame;

/**
 * 
 * @author fuki
 */
public abstract class Chart extends JInternalFrame  {
    
    abstract void resetValues();

    
    /**
     * Creates a new chart in a internal frame.
     * 
     * @param title     The title of the internal frame.
     * @param xPos      The x position of the internal frame.
     * @param yPos      The y position ot the internal frame.
     * @param width     The width of the internal frame.
     * @param height    The height of the internal frame.
     */
    public Chart(String title, int xPos, int yPos, int width, int height){
        super();
        super.setClosable(true);
        super.setResizable(true); 
        super.setMaximizable(true);
        super.setIconifiable(true);
        super.setDefaultCloseOperation(super.DO_NOTHING_ON_CLOSE);
        super.setTitle(title);
        super.setVisible(false);
        super.setBounds(xPos, yPos, width, height);          
    }
}
